#include <func.h>

int main()
{
    pid_t pid;
    pid = fork();
    if(0==pid)
    {
        printf("child : pid = %d, ppid = %d\n",getpid(),getppid());
       
        char *p = NULL;
        *p = 100;
        printf("cant,see");
        return 0;
    }
    else
    {
        printf("parent : pid = %d,child id: %d\n",\
               getpid(),pid);
        while(1);
sleep(1);
    }
}

